//
//  YSGlobal.m
//  Yaoyle
//
//  Created by ZhaoXudong on 14-9-19.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#import "YSGlobal.h"
#import "YSDefine.h"

#define gSysTime    @"gSysTime"
#define gUID        @"gUID"

@implementation YSGlobal

+ (void)setSysTime:(CGFloat)sysTime {
    NSString *str = [NSString stringWithFormat:@"%f",sysTime];
    DefaultSetValueForKey(str, gSysTime);
}

+ (CGFloat)getSysTime {
    CGFloat value = 0;
    NSString *str = DefaultValueForKey(gSysTime);
    if (str != nil) {
        value = [str floatValue];
    }
    return value;
}

+ (void)setUID:(NSString *)uid {
     DefaultSetValueForKey(uid, gUID);
}

+ (NSString *)getUID {
    return DefaultValueForKey(gUID);
}

+ (void)setScore:(NSString*)score {
}

+ (void)getScore {
}

+ (NSString *)getUseDefalutForKey:(NSString *)key {
    return DefaultValueForKey(key);
}

@end
